package de.clapp.panels;

import java.awt.LayoutManager;

import javax.swing.BorderFactory;
import javax.swing.JPanel;

@SuppressWarnings("serial")
public class MyPanel extends JPanel
{    
    public MyPanel()
    {
        this.setOpaque(false);
    }
    
    public MyPanel(String title)
    {
        this.setBorder(BorderFactory.createTitledBorder(title));
        this.setOpaque(false);
    }
    
    public MyPanel(LayoutManager mgr)
    {
        super(mgr);
    }
    
    public void setTitle(String title)
    {
        this.setBorder(BorderFactory.createTitledBorder(title));
    }
}
